<template>
	<view class="page">

		<view class="evaluate-data">
			<view class="evaluate-list">
				<view class="list" v-for="(item,index) in list" :key="index">
					<view class="user-info">
						<view class="thumb">
							<image :src="item.avatar"></image>
						</view>
						<view class="nickname-grade">
							<view class="nickname">
								<text>{{item.nickname}}</text>
							</view>
							<view class="grade">
								<view class="star">
									<text class="cuIcon-favorfill lg text-gray" v-for="(value,idx) in 5"
										:key="idx"></text>
								</view>
								<view class="date">
									<text>{{item.ctime}}</text>
								</view>
							</view>
						</view>
					</view>
					<view class="content">
						<view class="character">
							<text class="two-omit">{{item.content}}</text>
						</view>


					</view>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	import {
		getCommentListById
	} from '@/config/api.js';
	export default {
		data() {
			return {
				isVideoShow: false,
				queryList:{
					page: 1,
					limit: 20,
					id: null
				},
				videoContext: '',
				list:[],
			};
		},

		onLoad(options) {
			this.queryList.id = options.goodsId;
			getCommentListById(this.queryList).then(res => {
				this.list = res.data;
			})
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	@import "GoodsEvaluateList.scss";
</style>